home *** CD-ROM | disk | FTP | other *** search
/ mail.altrad.com / 2015.02.mail.altrad.com.tar / mail.altrad.com / TEST / office deutch / INFOPATH.NL-NL / INFLR.CAB / FL_ReadTextfromaFile_snippet_142687_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2005-10-28  |  814b  |  22 lines

  1. <?xml version="1.0"?>
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.   <CodeSnippet Format="1.0.0">
  4.     <Header>
  5.       <Title>Read Text from a File</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Reads the contents of a text file into a string.</Description>
  8.       <Shortcut>filReadText</Shortcut>
  9.     </Header>
  10.     <Snippet>
  11.       <Declarations>
  12.         <Literal>
  13.           <ID>FileName</ID>
  14.           <ToolTip>Replace with the file name.</ToolTip>
  15.           <Default>"C:\Test.txt"</Default>
  16.         </Literal>
  17.       </Declarations>
  18.       <Code Language="VB" Kind="method body"><![CDATA[Dim fileContents As String
  19. fileContents = My.Computer.FileSystem.ReadAllText($FileName$)]]></Code>
  20.     </Snippet>
  21.   </CodeSnippet>
  22. </CodeSnippets>